﻿using System.Collections.Generic;

namespace MeshSharp.Core.Models
{
    internal class EdgeNode
    {
        //the center of the edge
        public Vector3 Center { get; set; }
        //The 2 points that make up the edge
        public int[] Indices { get; set; }
        //List of triangles linked to the edge
        public List<int> Triangles { get; set; }

        public bool IsShared { get; set; }

        public EdgeNode(int[] indices, Vector3 center)
        {
            Indices = indices;
            Center = center;
            Triangles = new List<int>();
            IsShared = false;
        }
    }
}